package com.ytd.common.dialog;

import android.content.Context;
import android.view.Gravity;
import android.widget.TextView;

import com.ytd.common.R;


public class SyncDialog extends HideNavigationDialog {
    private TextView mTextView;

    public SyncDialog(Context context) {
        super(context);//设置样式
        getWindow().setGravity(Gravity.CENTER);
        setContentView(R.layout.dialog_sync_data);
        mTextView = findViewById(R.id.dialog_ok);
        this.setCanceledOnTouchOutside(false);
        //设置点击返回键不消失
        this.setCancelable(false);
    }

    public void setShowText(String text) {
        mTextView.setText(text);
    }
}